const fs = require('fs')
const path = require('path')

fs.readFile(path.join(__dirname,'./12312/2.html'),(err,data)=>{
  console.log(data.toString())
  const str = data.toString()
  const strHtml = str.replace(/\r\n/g,' ')
  console.log(strHtml)
  fs.writeFile(path.join(__dirname, './12312/2.html'),strHtml,(err)=>{
    console.log('写入成功')
    
  })
})
